package springtest.pojo;

import java.io.Serializable;
import java.util.Date;

import org.apache.solr.client.solrj.beans.Field;
import org.junit.Test;
import org.springframework.data.mongodb.core.mapping.Document;

@Document(collection = "12222")
public class Credential implements Serializable {
	@Test
	public void tt() {
		Document document = Credential.class.getAnnotation(Document.class);
		String collection = document.collection();
		System.out.println(collection);
	}

	@Field("id_credential")
	private String _id;
	@Field("name_credential")
	private String name;
	@Field("uuid")
	private String uuid;
	@Field("loginName_credential")
	private String loginName;
	@Field("loginName_credential")
	private String enableUserName;
	@Field("createdTime_credential")
	private Date createdTime;
	@Field("lastModifiedTime_credential")
	private Date lastModifiedTime;

	public String get_id() {
		return _id;
	}

	public void set_id(String _id) {
		this._id = _id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUuid() {
		return uuid;
	}

	public void setUuid(String uuid) {
		this.uuid = uuid;
	}

	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public String getEnableUserName() {
		return enableUserName;
	}

	public void setEnableUserName(String enableUserName) {
		this.enableUserName = enableUserName;
	}

	public Date getCreatedTime() {
		return createdTime;
	}

	public void setCreatedTime(Date createdTime) {
		this.createdTime = createdTime;
	}

	public Date getLastModifiedTime() {
		return lastModifiedTime;
	}

	public void setLastModifiedTime(Date lastModifiedTime) {
		this.lastModifiedTime = lastModifiedTime;
	}

	@Override
	public String toString() {
		return "Credential [_id=" + _id + ", name=" + name + ", uuid=" + uuid + ", loginName=" + loginName
				+ ", enableUserName=" + enableUserName + ", createdTime=" + createdTime + ", lastModifiedTime="
				+ lastModifiedTime + "]";
	}

}
